<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>收货报告管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
            $("#btnExport").click(function(){
                top.$.jBox.confirm("确认要导出收货信息吗？","系统提示",function(v,h,f){
                    if(v=="ok"){
                        $("#searchForm").attr("action","${ctx}/recption/recptionReport/export");
                        $("#searchForm").submit();
                    }
                },{buttonsFocus:1});
                top.$('.jbox-body .jbox-icon').css('top','55px');
            });
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/recption/recptionReport/">收货报告列表</a></li>
		<shiro:hasPermission name="recption:recptionReport:edit"><li><a href="${ctx}/recption/recptionReport/form">收货报告添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="recptionReport" action="${ctx}/recption/recptionReport/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>物流单号：</label>
				<form:input path="logisticsNo" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li><label>winit订单号：</label>
				<form:input path="winitOrderNo" htmlEscape="false" maxlength="255" class="input-medium"/>
			</li>
			<li><label>目的仓：</label>
				<%--<sys:treeselect id="office" name="destinationWhCode1" value="${destinationWhCode}" labelName="destinationWhCode" labelValue="${destinationWhCode}"
								title="部门" url="/sys/office/treeData?type=2" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/>--%>
				<sys:treeselect id="office" name="office.id" value="${recptionReport.office.id}" labelName="office.name" labelValue="${recptionReport.office.name}"
								title="部门" url="/sys/office/treeData?type=2" cssClass="" allowClear="true" notAllowSelectParent="true"/>
				<%--<form:input path="destinationWhCode" htmlEscape="false" maxlength="255" class="input-medium"/>--%>
			</li>
			<li><label>预计进仓：</label>
				<input name="entryWarhousnameTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${recptionReport.entryWarhousnameTime}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
			</li>
			<li><label>确认到仓：</label>
				<input name="actuEntryWarhousenameTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${recptionReport.actuEntryWarhousenameTime}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
			</li>
			<%--<li><label>创建时间：</label>
				<input name="createDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					value="<fmt:formatDate value="${recptionReport.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			</li>
			<li><label>更新者：</label>
				<form:input path="updateBy.id" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>--%>
			<li> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否过滤确认到仓：<form:checkbox path="isFilerRecption" value="Y" /> </li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
				               <input id="btnExport" class="btn btn-primary" type="button" value="导出"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>winit订单号</th>
				<th>物流单号</th>
				<th>目的仓</th>
				<%--<th>WINIT产品</th>--%>
			<%--	<th>预计托盘数</th>
				<th>实际托盘数</th>--%>
				<th>计划包裹数</th>
				<th>实际包裹数</th>
				<th>体积</th>
				<%--<th>预计生产时间</th>
				<th>实际生产时间</th>
				<th>异常工时</th>
				<th>事件规划</th>--%>
				<th>预计进仓日期</th>
				<th>确认到仓日期</th>
				<%--<th>更新时间</th>--%>
				<th>备注信息</th>
				<%--<th>删除标记</th>--%>
				<shiro:hasPermission name="recption:recptionReport:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="recptionReport">
			<tr>
				<td><a href="${ctx}/recption/recptionReport/form?id=${recptionReport.id}">
					${recptionReport.winitOrderNo}
				</a></td>
				<td>
					${recptionReport.logisticsNo}
				</td>
				<td>
					<%--${recptionReport.destinationWhCode}--%>
							${recptionReport.office.name}
				</td>
				<%--<td>
					${recptionReport.winitProductName}
				</td>--%>
			<%--	<td>
						${recptionReport.tuopanQty}
				</td>
				<td>
					${recptionReport.actuTuopanQty}
				</td>--%>
				<td>
					${recptionReport.packageQty}
				</td>
				<td>
					${recptionReport.actuPackageQty}
				</td>
				<td>
					${recptionReport.volue}
				</td>
				<%--<td>
					${recptionReport.spendTime}
				</td>
				<td>
					${recptionReport.actuSpendTime}
				</td>
				<td>
					${recptionReport.exceptTime}
				</td>
				<td>
					${recptionReport.eventPlan}
				</td>--%>
				<td>
					<fmt:formatDate value="${recptionReport.entryWarhousnameTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${recptionReport.actuEntryWarhousenameTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
			<%--	<td>
					<fmt:formatDate value="${recptionReport.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>--%>
				<td>
					${recptionReport.remarks}
				</td>
				<%--<td>
					${fns:getDictLabel(recptionReport.delFlag, 'del_flag', '')}
				</td>--%>
				<shiro:hasPermission name="recption:recptionReport:edit"><td>
    				<a href="${ctx}/recption/recptionReport/form?id=${recptionReport.id}">修改</a>
					<a href="${ctx}/recption/recptionReport/delete?id=${recptionReport.id}" onclick="return confirmx('确认要删除该收货报告吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>